package com.vote.common.service.impl;

import com.vote.common.entity.VoteRecord;
import com.vote.common.mapper.VoteRecordMapper;
import com.vote.common.service.VoteRecordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 投票记录表 服务实现类
 * </p>
 *
 * @author gyg
 * @since 2021-05-18
 */
@Service
public class VoteRecordServiceImpl extends ServiceImpl<VoteRecordMapper, VoteRecord> implements VoteRecordService {

    @Override
    @Async
    public void accessRecord(VoteRecord voteRecord) {
        baseMapper.insert(voteRecord);
    }
}
